import Vue from 'vue'
import '@/utils/vue-ls'
import 'normalize.css/normalize.css' // A modern alternative to CSS resets

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n

import '@/styles/index.scss' // global css

import App from './App'
import store from './store'
import router from './router'

import '@/icons' // icon
import '@/permission' // permission control
import axios from 'axios'
// 引入Avue
import Avue from '@smallwei/avue'
import '@smallwei/avue/lib/index.css'

window.axios = axios
Vue.use(Avue, {axios})
import avueSeting from './avue.setting'

window.avueCrud = avueSeting.curd //表格配置
// set ElementUI lang to EN
Vue.use(ElementUI, {locale, size: 'mini',})

//挂载api
import api from './api'

Vue.prototype.$api = api
console.log('api :>> ', api)
// 如果想要中文版 element-ui，按如下方式声明
// Vue.use(ElementUI)

import * as utils from "@/utils";

Vue.prototype.$utils = utils
Vue.config.productionTip = false

window.$app = new Vue({
	el: '#app',
	router,
	store,
	render: h => h(App)
})
